//
//  RGMeView.h
//  RedGrass
//
//  Created by wukong on 2018/11/27.
//  Copyright © 2018年 hongcaosp. All rights reserved.
//

#import "BaseView.h"
#import "RGUserInfoHeaderView.h"
#import "RGMessageContactModel.h"
#import "RGRecommendVideoModel.h"

@class RGMeView;
@protocol RGMeViewDelegate <NSObject>

@optional

//item点击事件
-(void) actionBtnClickWithView:(RGMeView *)view Tag:(NSInteger)tag;
//- (void)updateNavigationTitle:(CGFloat)offsetY;
- (void)showTextMessageWithMessage:(NSString *)message;

-(void) cellItemChosedWithView:(RGMeView *)view chosedIndexPath:(NSIndexPath *)path dataList:(NSMutableArray *)array chosedTabIndex:(NSInteger)chosedTabIndex;

//点赞
-(void) favoriteVedioWithView:(RGMeView *)view chosedIndexPath:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;

//评论
-(void) comementVedioWithView:(RGMeView *)view chosedIndexPath:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;

//分享
-(void) shareVedioWithView:(RGMeView *)view chosedIndexPath:(NSIndexPath *)path vedioModel:(RGRecommendVideoModel * )model;
//更新视频播放量
-(void) updateVedioPlayCountWithVedioId:(NSInteger)vedioId;

//更新button
-(void) updatePersonalPageWithNickName:(NSString *)nickName meFollowmTa:(BOOL)meFollowmTa;

@end

NS_ASSUME_NONNULL_BEGIN
#define kUserInfoHeaderHeight          308 + SafeAreaTopHeight
#define kSlideTabBarHeight             45
@interface RGMeView : BaseView
@property (nonatomic, strong) RGUserInfoHeaderView *userInfoHeader;
@property (nonatomic,weak) id<RGMeViewDelegate> meViewDelegate;
@property (nonatomic, assign) NSInteger selectIndex;
@property (nonatomic,assign) NSInteger userId;
@property (nonatomic,assign) BOOL isShowHeaderViewBtnView; //是否显示添加会员等button
- (void)reloadUserSectionWithModel:(RGMessageContactModel *)model;

//初始化数据
-(void)loadData:(NSInteger)userId;

-(void) startFavoriteAnimationWithIsFavorite:(BOOL)isFavorite cellIndex:(NSInteger)index;

-(void)stopPlayingWhenCurrentVCIsNoteVisiable;

-(void) updateCommentCountsWhenCommentSuccessWithCellIndex:(NSInteger)cellIndex;
//转发成功后更新转发数
-(void)updateforwardCountsWhenShareSuccessWithCellIndex:(NSInteger)cellIndex;


-(void)reloadData;

- (void)reloadDataWhenNeedUpdateData:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
